<template>
  <div class="kpi-actual-index">
    <div class="section-title"><icon-svg name="iconCommon"></icon-svg> 实时指标配置信息</div>
    <div class="section-content">
      <actual-logic :dataLabs="tag.jsonConfig ? JSON.parse(tag.jsonConfig.tagConfigJson) : []"></actual-logic>
    </div>
    <actual-result :tag="tag.jsonConfig ? tag.jsonConfig : {}"></actual-result>
  </div>
</template>

<script>
import actualLogic from './actual-logic'
import actualResult from './actual-result'
export default {
  components: {
    actualLogic,
    actualResult
  },
  props: {
    tag: {
      type: Object,
      required: true,
      default: () => {}
    }
  },
  data() {
    return {}
  },
  methods: {}
}
</script>

<style lang="scss">
.kpi-actual-index {
  .section-title {
    font-size: 17px;
    font-weight: bold;
    padding: 0 10px;
    height: 50px;
    line-height: 50px;
    color: #fff;
    background-color: #5391ef;
    border-radius: 2px;
    svg {
      width: 25px;
      height: 25px;
      vertical-align: middle;
      margin: -3px 5px 0 0;
    }
  }
  .section-content {
    border: 1px solid #ccc;
  }
}
</style>
